package com.arpa.wms.domain.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.arpa.wms.domain.entity.Prepackaged;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Digits;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 拣货明细DTO
 * </p>
 *
 * @author xuyang
 * @since 2020-10-22
 */
@Data
@ApiModel(value="PickingItemWithRegisterVO对象", description="拣货明细与确认单关联对象")
public class PickingItemWithRegisterVO implements Serializable {


    @ApiModelProperty(value = "数据标识（register表的）")
    private String code;

    @ApiModelProperty(value = "拣货单号")
    private String pickingCode;

    @ApiModelProperty(value = "拣货单明细编码")
    private String pickingItemCode;

    @ApiModelProperty(value = "出货分配标识")
    private String deliveryDistributionCode;

    @ApiModelProperty(value = "出货明细标识")
    private String deliveryItemCode;

    @ApiModelProperty(value = "来源单明细标识,便于回填信息")
    private String sourceItemCode;

    @ApiModelProperty(value = "商品编码code")
    private String goodsCode;

    @ApiModelProperty(value = "商品编码")
    private String goodCode;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品条码")
    private String goodsBarCode;

    @ApiModelProperty(value = "商品规格")
    private String spec;

    @ApiModelProperty(value = "商品保质期（天）")
    private BigDecimal expirationQuantity;

    @ApiModelProperty(value = "单位")
    private String goodsUnit;

    @ApiModelProperty(value = "单位名称")
    private String goodsUnitName;

    @ApiModelProperty(value = "基本单位")
    private String basicUnit;

    @ApiModelProperty(value = "基本单位名称")
    private String basicUnitName;

    @ApiModelProperty(value = "库存批次号")
    private String lot;

    @ApiModelProperty(value = "收货批次号")
    private String receiveLot;

    @ApiModelProperty(value = "生产日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtManufacture;

    @ApiModelProperty(value = "过期日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtExpire;

    @ApiModelProperty(value = "存货日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtStock;

    @ApiModelProperty(value = "供应商")
    private String supplier;

    @ApiModelProperty(value = "序列号")
    private String serialNumber;

    @ApiModelProperty(value = "扩展1")
    private String extendOne;

    @ApiModelProperty(value = "扩展2")
    private String extendTwo;

    @ApiModelProperty(value = "扩展3")
    private BigDecimal extendThree;

    @ApiModelProperty(value = "扩展4")
    private BigDecimal extendFour;

    @ApiModelProperty(value = "扩展5")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime extendFive;

    @ApiModelProperty(value = "扩展6")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime extendSix;

    @ApiModelProperty(value = "库存状态")
    private String goodsStatus;

    @ApiModelProperty(value = "库存状态")
    private String goodsStatusName;

    @ApiModelProperty(value = "仓库")
    private String warehouseCode;

    @ApiModelProperty(value = "库区")
    private String warehouseSpaceCode;

    @ApiModelProperty(value = "分配库位")
    private String location;

    @ApiModelProperty(value = "分配库位名称")
    private String locationName;

    @ApiModelProperty(value = "分配数量")
    private BigDecimal distributionQuantity;

    @ApiModelProperty(value = "缺货数量")
    private BigDecimal stockoutQuantity;

    @ApiModelProperty(value = "未拣货数量")
    private BigDecimal notPickingQuantity;

    @ApiModelProperty(value = "拣货明细单的总拣货数量")
    private BigDecimal itemPickingQuantity;

    @ApiModelProperty(value = "拣货确认单拣货数量， 会存在未确认的确认单信息")
    @Digits(integer = 20,fraction = 6,groups = {PickingVO.Save.class, PickingVO.Update.class})
    private BigDecimal pickingQuantity;

    @ApiModelProperty(value = "状态;0:未拣货；2：已拣货")
    private String status;

    @ApiModelProperty(value = "状态翻译值")
    private String statusText;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "总数")
    private Long total;

    @ApiModelProperty(value = "基本单位转换数量")
    private BigDecimal basicQuantity;

    @ApiModelProperty(value = "库存编码")
    private String inventoryCode;

    @ApiModelProperty(value = "库存表带的原库存编码")
    private String oldInventoryCode;

    @ApiModelProperty(value = "容器号")
    private String containerBarCode;

    @ApiModelProperty(value = "容器类型;0:托盘；1：周转箱；")
    private String containerType;

    @ApiModelProperty(value = "任务号")
    private String taskCode;

    @ApiModelProperty(value = "作业人编码")
    private String operatorBy;

    @ApiModelProperty(value = "作业人名称")
    private String operatorName;

    @ApiModelProperty(value = "库存是否锁定；从库存中带过来的")
    private Integer isLock;

    @ApiModelProperty(value = "库存容器号，从库存中带出，由于周转箱号不会保存到库存中，所以这个字段有值则说明是托盘号；")
    private String inventoryContainerBarCode;

    @ApiModelProperty(value = "oms销售单明细code")
    private String saleItemCode;

    @ApiModelProperty(value = "库存商品是否可发货；0：是；1：否；")
    private String isConsignment;

    @ApiModelProperty(value = "波次单号")
    private String wavePickingCode;

    @ApiModelProperty(value = "计划数量")
    private BigDecimal planQuantity;

    @ApiModelProperty(value = "相同商品的汇总计划数量")
    private BigDecimal totalPlanQuantity;

    @ApiModelProperty(value = "单包裹组合数量")
    private BigDecimal combinationQuantity;

    @ApiModelProperty(value = "订单拣货序号，格式：(2)-1 ,(3)-4 ，其中2和3指的是订单序号，1和4指的是拣货数量")
    private String deliveryOrderNum;


}
